<template>
  <div class="container">
    <img class="bg" src="../../../public/static/image/404/404.png" />
    <div class="btn">
      <a href="/" class="goindex">返回首页</a>
      <a @click="cc" href="/" target="_blank" class="lx">刷新</a>
      <div style="clear: both"></div>
    </div>
  </div>
</template>
<script>
export default {
    methods:{
        cc(){
            history.go(0)
        }
    }
}
</script>
<style scoped>
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "微软雅黑";
}
body,
html {
  width: 100%;
  height: 100%;
}
.container {
  max-width: 90%;
  margin: 0 auto;
  padding: 80px 0px;
}
img {
  /* 针对safari和chrome禁止复制 、选择*/
  -webkit-user-select: none;
  /* 针对火狐的选择、复制 */
  -moz-user-select: none;
  /* 针对edge的选择、赋值 */
  -ms-user-select: none;
  /* 禁止选择文本 */
  user-select: none;
}
.bg {
  display: block;
  max-width: 100%;
  margin: 0px auto;
  margin: 40px auto;
}
.btn {
  width: 400px;
  margin: 0 auto;
  max-width: 100%;
  margin-top: 40px;
}
.btn a {
  float: left;
  text-decoration: none;
  width: 46.5%;
  border: 1px solid #5298ff;
  background: #5298ff;
  color: #fff;
  display: block;
  height: 46px;
  line-height: 44px;
  text-align: center;
  font-size: 16px;
  border-radius: 3px;
  overflow: hidden;
}
.btn .goindex {
  margin-right: 7%;
}
.btn .lx {
  border: 1px solid #d8d8d8;
  background: #ffffff;
  color: #8c8c8c;
}
@media screen and (max-width: 500px) {
  .btn {
    width: 85%;
  }
  .btn a {
    width: 100%;
    font-size: 15px;
    height: 42px;
    line-height: 42px;
  }
  .btn .goindex {
    margin-right: 0;
    margin-bottom: 20px;
  }
}
</style>